/*
 * @Description: 
 * @Version: 2.0
 * @Autor: 于新强
 * @Date: 2023-05-04 16:41:21
 * @LastEditors: 于新强
 * @LastEditTime: 2023-05-04 17:11:23
 */
import axios from 'axios'
import type { AxiosInstance, AxiosRequestConfig } from 'axios'

class Request {
  // axios 实例
  instance: AxiosInstance

  constructor(config: AxiosRequestConfig) {
    this.instance = axios.create(config)
  }
  request(config: AxiosRequestConfig) {
    return this.instance.request(config)
  }
}

export default Request
